package com.chukun.gateway.core.parallel.disruptor;

import lombok.Data;

/**
 * @author chukun
 * @version 1.0.0
 * @description ringbuffer中存放的数据
 * @createTime 2023/12/23 20:11
 */
public class BufferHolder<E> {

    private E event;

    public void setValue(E event) {
        this.event = event;
    }

    public E getEvent() {
        return event;
    }

    @Override
    public String toString() {
        return "Holder{" +
                "event=" + event +
                '}';
    }
}
